package md.lanjing.com.uitool

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        tv.setOnClickListener(object :View.OnClickListener{
            override fun onClick(v: View?) {
               tv.setText(psw.psw)
            }
        })

    }
}
